factor a^3-3a^2+3a+6